﻿
#pragma once

//----------------------------------------------------------------------------------
//
//----------------------------------------------------------------------------------
#include "ace.Window_Imp.h"

#include <X11/Xlib.h>
#include <X11/Xutil.h>

//----------------------------------------------------------------------------------
//
//----------------------------------------------------------------------------------
namespace ace {
//----------------------------------------------------------------------------------
//
//----------------------------------------------------------------------------------
class Window_Imp_X11 : public Window_Imp
{
private:
	bool		m_closed;

	GLFWwindow*	m_window;

	void Unregist();
public:

	static Window_Imp* Create(int32_t width, int32_t height, const achar* title);

	Window_Imp_X11(GLFWwindow* window, int32_t width, int32_t height);
	virtual ~Window_Imp_X11();

	bool DoEvent();

	void SetTitle( const achar* title );

	void Close();

	GLFWwindow*	GetWindow() { return m_window; }
};

//----------------------------------------------------------------------------------
//
//----------------------------------------------------------------------------------
}